package com.wisdytech.linkdcs.equipment.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * 设备与连接终端关联表
 * @author dlb
 *
 */

@TableName("TT_EQ_TO_CLIENT")
public class EquipmentToClient extends Model<EquipmentToClient>{

	private static final long serialVersionUID = 1L;
    /**
     * 唯一id
     */
    @TableId("PK_ID")
	private String pkId;
    
    /**
     * 设备id,原来为Equipment_Id
     */
    @TableField("EQUIP_CODE")
    private String equipCode;
    /**
     * 设备id,原来为Equipment_Id
     */
    @TableField(exist=false)
    private String equipId;
    
    /**
     * 设备与采集终端的连接信息id
     */
    @TableField("client_Id")
    private String clientId;
    
    /**
     * 采集方式
     */
    @TableField("type")
    private int type;
    
    /**
     * 采集频率
     */
    @TableField("frequency")
    private int frequency;
    
    /**数据源地址*/
    @TableField("address")
    private String address;
    
   
    
    /**文件锁类型*/
    @TableField("FILE_LOCK_TYPE")
    private String fileLockType;
    
    /**是否删除*/
    @TableField("IS_DEL_FILE")
    private int isDelFile;
    
    
    /**备注*/
    @TableField("remark")
    private String remark;
 

    
    @TableField(exist=false)
    private String equipName;
    
    @TableField(exist=false)
    private String clientCode;
    
    @TableField(exist=false)
    private String clientName;
    
    @TableField(exist=false)
    private String operationName;
    
    @TableField(exist=false)
    private String modelCode;
    
    
    
    /*******连接详细信息***********/
    
    /**工序特殊标志*/
    @TableField(exist=false)
    private String opUrl;
    /**工序*/
    @TableField(exist=false)
    private String operationId;
    
    
    @TableField(exist=false)
    private String modelId;
    
    @TableField(exist=false)
    private String clientRoute;
    
    
    
    @TableField(exist=false)
	private String plcProtocal;
	
    @TableField(exist=false)
	private String plcAddr;
	
    @TableField(exist=false)
	private String databaseAddr;
	
    @TableField(exist=false)
	private String fileAddr;
	
    @TableField(exist=false)
	private String upperAddr;
    
    
    
    /***推送dcs需要信息**/
    //通讯编码
    @TableField(exist=false)
    private String equipCodeName;
    //协议编码
    @TableField(exist=false)
    private String protocalCode;
    
    
	public String getEquipId() {
		return equipId;
	}



	public void setEquipId(String equipId) {
		this.equipId = equipId;
	}



	@Override
	protected Serializable pkVal() {
		// TODO Auto-generated method stub
		return this.pkId;
	}

	
	public String getEquipCodeName() {
		return equipCodeName;
	}



	public void setEquipCodeName(String equipCodeName) {
		this.equipCodeName = equipCodeName;
	}



	public String getProtocalCode() {
		return protocalCode;
	}



	public void setProtocalCode(String protocalCode) {
		this.protocalCode = protocalCode;
	}



	public String getFileLockType() {
		return fileLockType;
	}



	public void setFileLockType(String fileLockType) {
		this.fileLockType = fileLockType;
	}



	public int getIsDelFile() {
		return isDelFile;
	}



	public void setIsDelFile(int isDelFile) {
		this.isDelFile = isDelFile;
	}



	public String getModelCode() {
		return modelCode;
	}



	public void setModelCode(String modelCode) {
		this.modelCode = modelCode;
	}



	public String getPlcProtocal() {
		return plcProtocal;
	}



	public void setPlcProtocal(String plcProtocal) {
		this.plcProtocal = plcProtocal;
	}



	public String getPlcAddr() {
		return plcAddr;
	}



	public void setPlcAddr(String plcAddr) {
		this.plcAddr = plcAddr;
	}



	public String getDatabaseAddr() {
		return databaseAddr;
	}



	public void setDatabaseAddr(String databaseAddr) {
		this.databaseAddr = databaseAddr;
	}



	public String getFileAddr() {
		return fileAddr;
	}



	public void setFileAddr(String fileAddr) {
		this.fileAddr = fileAddr;
	}



	public String getUpperAddr() {
		return upperAddr;
	}



	public void setUpperAddr(String upperAddr) {
		this.upperAddr = upperAddr;
	}



	public String getClientRoute() {
		return clientRoute;
	}



	public void setClientRoute(String clientRoute) {
		this.clientRoute = clientRoute;
	}



	public String getModelId() {
		return modelId;
	}



	public void setModelId(String modelId) {
		this.modelId = modelId;
	}



	public String getOperationId() {
		return operationId;
	}



	public void setOperationId(String operationId) {
		this.operationId = operationId;
	}



	public String getPkId() {
		return pkId;
	}

	public void setPkId(String pkId) {
		this.pkId = pkId;
	}

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getFrequency() {
		return frequency;
	}

	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	

//	public Date getCreateDate() {
//		return createDate;
//	}
//
//	public void setCreateDate(Date createDate) {
//		this.createDate = createDate;
//	}
//
//	public Date getUpdateDate() {
//		return updateDate;
//	}
//
//	public void setUpdateDate(Date updateDate) {
//		this.updateDate = updateDate;
//	}

	public String getEquipCode() {
		return equipCode;
	}

	public void setEquipCode(String equipCode) {
		this.equipCode = equipCode;
	}

	public String getEquipName() {
		return equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}

	public String getClientCode() {
		return clientCode;
	}

	public void setClientCode(String clientCode) {
		this.clientCode = clientCode;
	}

	public String getClientName() {
		return clientName;
	}

	public void setClientName(String clientName) {
		this.clientName = clientName;
	}

	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}



	public String getOpUrl() {
		return opUrl;
	}



	public void setOpUrl(String opUrl) {
		this.opUrl = opUrl;
	}
	
	
	
}
